<?php
include('../../inc/global.inc');
$url=$_SERVER['HTTP_REFERER'];
?>
<HTML>
<HEAD>
<TITLE>Admin</TITLE>
<META http-equiv=Content-Type content="text/html; charset=utf-8">
<LINK href="../css/css.css" rel=stylesheet>
<script type='text/javascript' src="../js/islogin.js" charset="gb2312"></script>
</HEAD>
<BODY>
<center>
  <table width="70%" border="0" cellpadding="0" cellspacing="1" bgcolor="#000000">
    <tr>
      <td height="25" bgcolor="#EEEEF9" style="padding-left:5px;">询价邮件&nbsp;&nbsp;<a href="javascript:history.go(-1)">返回</a></td>
    </tr>
  </table>
  <table width="70%" border="0" cellspacing="0" cellpadding="0">
    <tr>
      <td height="5"></td>
    </tr>
  </table>
  <?php
if($_GET[xg_id]){
$rs=mysql_query("select * from note where id='".$_GET['xg_id']."'");
$row=mysql_fetch_array($rs);
if($row[0]){
?>
<table width="70%" border="0" align="center" cellpadding="0" cellspacing="1" bgcolor="#000000">
  <tr>
    <td height="30" colspan="2" align="center" bgcolor="#8DA8CF"><span style="padding-left:5px;"><strong>询价邮件</strong></span></td>
  </tr>
  <tr>
    <td width="141" height="22" align="right" bgcolor="#8DA8CF"><strong>主题:</strong></td>
    <td width="539" bgcolor="#FFFFFF" style="padding-left:5px;"><a href="<?=$row[n_web]?>" target="_blank"><?=$row[n_subject]?></a></td>
  </tr>
  <tr>
    <td height="22" align="right" bgcolor="#8DA8CF"><strong>内容:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row[n_content]?></td>
  </tr>
  <tr>
    <td height="22" align="right" bgcolor="#8DA8CF"><strong> from:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?php
	  $m_rs=@mysql_query("select * from member where id='$row[from_id]'");
	  $m_row=@mysql_fetch_array($m_rs);
	  ?><?=$m_row[m_user]?></td>
  </tr>
  <tr>
    <td height="22" align="right" bgcolor="#8DA8CF"><strong>to:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?php
	  $m_rs=@mysql_query("select * from member where id='$row[to_id]'");
	  $m_row=@mysql_fetch_array($m_rs);
	  ?><?=$m_row[m_user]?></td>
  </tr>
  <tr>
    <td height="22" align="right" bgcolor="#8DA8CF"><strong>时间:</strong></td>
    <td bgcolor="#FFFFFF" style="padding-left:5px;"><?=$row['add_time']?></td>
  </tr>
</table>
<?php
}}?>
</center>
</BODY>
</HTML>

